
//用户名获取焦点
$(function(){
    $('.username').bind({
        focus:function(){
            $(".placeholder1").hide();
            $(".username").css("background-color","floralwhite")
        },
        blur:function(){
            if(this.value==''){
                $(".placeholder1").show();
                $(".username").css("background-color","")
            }
        }
    });
})
//密码获取焦点
$(function(){
    $('.password').bind({
        focus:function(){
            $(".placeholder2").hide();
            $(".password").css("background-color","floralwhite")

        },
        blur:function(){
            if(this.value==''){
                $(".placeholder2").show();
                $(".password").css("background-color","")

            }
        }
    });
})